package com.sg.service.biz.component.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.exception.Assert;
import com.sg.common.exception.BizException;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.base.component.req.BatchQueryMessageReq;
import com.sg.dto.base.component.req.QueryMemberMsgReceiveListReq;
import com.sg.dto.biz.component.common.GetListIntelligentAnswersDto;
import com.sg.dto.biz.component.common.MessageDto;
import com.sg.dto.biz.component.req.*;
import com.sg.dto.biz.component.res.*;
import com.sg.entity.OmsMessage;
import com.sg.entity.OmsMessageMember;
import com.sg.service.base.component.MCustomFields3Service;
import com.sg.service.base.component.MOmsMessageMemberService;
import com.sg.service.base.component.MOmsMessageService;
import com.sg.service.biz.component.*;
import com.sg.service.biz.component.nb.NbIntelligentCommunication;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class IntelligentCommunicationServiceImpl implements IntelligentCommunicationService {

    @Resource
    private RedisUtil redisUtil;
    //@Resource
    //private MSpecMethordTableService mSpecMethordTableService;
    @Resource
    private NbIntelligentCommunication nbIntelligentCommunication;
    @Resource
    private ConfSchemeService confSchemeService;
    @Resource
    private MCustomFields3Service mCustomFields3Service;
    @Resource
    private MOmsMessageMemberService mOmsMessageMemberService;
    @Resource
    private MOmsMessageService mOmsMessageService;
    //@Resource
    //private MMmmShellService mMmmShellService;
    @Resource
    private TemplateEngineService templateEngineService;
    @Resource
    private InterfaceModeService interfaceModeService;
    @Resource
    private BusinessAtomService businessAtomService;
    @Resource
    private ResourceFileService resourceFileService;
//@Resource
    //private MCustomFields6Service mCustomFields6Service;
//@Resource
    //private MCustomFields4Service mCustomFields4Service;

    /**
     * D2执行第三方智能问答接口(公共)[8115]
     * gen by moon at 12/10/2023, 3:20:12 AM
     */
    @Trace(operationName = "D2执行第三方智能问答接口(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementThirdPartIntelligentQaInterfaceComRespDto implementThirdPartIntelligentQaInterfaceCom(ImplementThirdPartIntelligentQaInterfaceComReqDto reqDto) {


        ImplementThirdPartIntelligentQaInterfaceRespDto implementThirdPartIntelligentQaInterfaceRes_1 = null;
//步骤0: M2执行第三方智能问答接口 - implementThirdPartIntelligentQaInterface
        //ModelCode: implementThirdPartIntelligentQaInterface
        ImplementThirdPartIntelligentQaInterfaceRespDto implementThirdPartIntelligentQaInterfaceRes = null;
        ImplementThirdPartIntelligentQaInterfaceReqDto implementThirdPartIntelligentQaInterfaceReq = new ImplementThirdPartIntelligentQaInterfaceReqDto();
        if (reqDto != null) {
            implementThirdPartIntelligentQaInterfaceReq.setIntelliQaAddress(reqDto.getIntelliQaAddress());//SimpleFieldAssign//sourceId:1400564_1
            implementThirdPartIntelligentQaInterfaceReq.setKey(reqDto.getKey());//SimpleFieldAssign//sourceId:1400563_1
            implementThirdPartIntelligentQaInterfaceReq.setModelVersion(reqDto.getModelVersion());//SimpleFieldAssign//sourceId:1400565_1
        }
        if (reqDto != null && reqDto.getGetListIntelligentAnswersList() != null && !CollectionUtil.isEmpty(reqDto.getGetListIntelligentAnswersList())) {
            implementThirdPartIntelligentQaInterfaceReq.setGetListIntelligentAnswersList(reqDto.getGetListIntelligentAnswersList().stream().map(item -> BeanUtil.toBean(item, GetListIntelligentAnswersDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1400566_1
        }

        /*M2执行第三方智能问答接口[8116]   */
        Assert.isNull(implementThirdPartIntelligentQaInterfaceReq.getIntelliQaAddress(), "D2执行第三方智能问答接口(公共)-M2执行第三方智能问答接口-第三方智能问答地址不能为空", false);
        Assert.isNull(implementThirdPartIntelligentQaInterfaceReq.getKey(), "D2执行第三方智能问答接口(公共)-M2执行第三方智能问答接口-key不能为空", false);
        Assert.isNull(implementThirdPartIntelligentQaInterfaceReq.getModelVersion(), "D2执行第三方智能问答接口(公共)-M2执行第三方智能问答接口-模型版本不能为空", false);
        implementThirdPartIntelligentQaInterfaceRes = nbIntelligentCommunication.implementThirdPartIntelligentQaInterface(implementThirdPartIntelligentQaInterfaceReq);


        implementThirdPartIntelligentQaInterfaceRes_1 = implementThirdPartIntelligentQaInterfaceRes;

        ImplementThirdPartIntelligentQaInterfaceComRespDto retData = new ImplementThirdPartIntelligentQaInterfaceComRespDto();
        if (implementThirdPartIntelligentQaInterfaceRes_1 != null) {
            retData.setContent(implementThirdPartIntelligentQaInterfaceRes_1.getContent());//SimpleFieldAssign//sourceId:1400575_1
            retData.setRole(implementThirdPartIntelligentQaInterfaceRes_1.getRole());//SimpleFieldAssign//sourceId:1400576_1
        }


        return retData;
    }

    /**
     * D2执行导向第三方智能问答(公共)[8103]
     * gen by moon at 12/13/2024, 10:42:35 PM
     */
    @Trace(operationName = "D2执行导向第三方智能问答(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementGuidedThirdPartyIntelligentQaComRespDto implementGuidedThirdPartyIntelligentQaCom(ImplementGuidedThirdPartyIntelligentQaComReqDto reqDto) {


        ImplementThirdPartIntelligentQaInterfaceComRespDto implementThirdPartIntelligentQaInterfaceComRespDto_1 = null;
//virtualUsage M2约定字段：通义千问模型版本、chatGpt模型版本  73791
        //ModelCode: receptionService
        QueryFileQaDetailRespDto receptionServiceRes = null;
        QueryFileQaDetailReqDto receptionServiceReq = new QueryFileQaDetailReqDto();
        receptionServiceReq.setCustomField1("qwen-plus");//CUSTOM_CONVENTION//sourceId:2036977_1_73791
        receptionServiceReq.setCustomField2("qwen-long");//CUSTOM_CONVENTION//sourceId:2036978_1_73791

        /*M2约定字段：通义千问模型版本、chatGpt模型版本[10427]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getCustomField1(), "D2执行导向第三方智能问答(公共)-M2约定字段：通义千问模型版本、chatGpt模型版本-自定义字段1不能为空", false);
        Assert.isNull(receptionServiceReq.getCustomField2(), "D2执行导向第三方智能问答(公共)-M2约定字段：通义千问模型版本、chatGpt模型版本-自定义字段2不能为空", false);
        receptionServiceRes = nbIntelligentCommunication.queryFileQaDetail(receptionServiceReq);


//virtualUsage D2-3查第三方智能问答接口地址密钥  56319
        QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
        QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
        queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("THIRD_QA_SYSTEM");//CUSTOM_CONVENTION//sourceId:1396838_1_56319
        queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1396839_1_56319
        if (reqDto != null) {
            queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(reqDto.getResultAspObjId());//SimpleFieldAssign//sourceId:1396837_1_56319
        }

        /*D2-3查第三方智能问答接口地址密钥[2486]   */
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(), "D2执行导向第三方智能问答(公共)-D2-3查第三方智能问答接口地址密钥-开通对象ID不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "D2执行导向第三方智能问答(公共)-D2-3查第三方智能问答接口地址密钥-配置项标识不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "D2执行导向第三方智能问答(公共)-D2-3查第三方智能问答接口地址密钥-是否标准答案不能为空", false);
        queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto)/*vcase invoke isSameApp*/;


        if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getExtensionField1() != null && queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getExtensionField2() != null)) {
            //if((D2-3查第三方智能问答接口地址密钥.扩展字段1 （非必填） 值不等于空  and D2-3查第三方智能问答接口地址密钥.扩展字段2（非必填） 值不等于空 ))  56321

            if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("TONGYI_QIANWEN"))) {
                //if(D2-3查第三方智能问答接口地址密钥.答案值 等于 通义千问)  73752

                if ((reqDto != null && reqDto.getBusModelVersion() != null && reqDto.getBusModelVersion().equals("PLUS_VERSION"))) {
                    //if(D2执行导向第三方智能问答(公共).业务模型版本 等于 增强版本)  73754

                    ImplementThirdPartIntelligentQaInterfaceComRespDto implementThirdPartIntelligentQaInterfaceComRespDto = null;
                    if (queryConfItemMatchAnswerDetailComRespDto != null) {
                        ImplementThirdPartIntelligentQaInterfaceComReqDto implementThirdPartIntelligentQaInterfaceComReqDto = new ImplementThirdPartIntelligentQaInterfaceComReqDto();
                        if (queryConfItemMatchAnswerDetailComRespDto != null) {
                            implementThirdPartIntelligentQaInterfaceComReqDto.setIntelliQaAddress(queryConfItemMatchAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:1400577_1_73788
                            implementThirdPartIntelligentQaInterfaceComReqDto.setKey(queryConfItemMatchAnswerDetailComRespDto.getExtensionField2());//SimpleFieldAssign//sourceId:1400578_1_73788
                        }
                        if (receptionServiceRes != null) {
                            implementThirdPartIntelligentQaInterfaceComReqDto.setModelVersion(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1400579_1_73788
                        }
                        if (reqDto != null && reqDto.getGetListIntelligentAnswersList() != null && !CollectionUtil.isEmpty(reqDto.getGetListIntelligentAnswersList())) {
                            implementThirdPartIntelligentQaInterfaceComReqDto.setGetListIntelligentAnswersList(reqDto.getGetListIntelligentAnswersList().stream().map(item -> BeanUtil.toBean(item, GetListIntelligentAnswersDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1400580_1_73788
                        }

                        /*D2执行第三方智能问答接口(公共)[8115]   */
                        Assert.isNull(implementThirdPartIntelligentQaInterfaceComReqDto.getIntelliQaAddress(), "D2执行导向第三方智能问答(公共)-D2执行第三方智能问答接口(公共)-第三方智能问答地址不能为空", false);
                        Assert.isNull(implementThirdPartIntelligentQaInterfaceComReqDto.getKey(), "D2执行导向第三方智能问答(公共)-D2执行第三方智能问答接口(公共)-key不能为空", false);
                        Assert.isNull(implementThirdPartIntelligentQaInterfaceComReqDto.getModelVersion(), "D2执行导向第三方智能问答(公共)-D2执行第三方智能问答接口(公共)-模型版本不能为空", false);
                        implementThirdPartIntelligentQaInterfaceComRespDto = implementThirdPartIntelligentQaInterfaceCom(implementThirdPartIntelligentQaInterfaceComReqDto)/*vcase invoke 同服务,同domain*/;


                        implementThirdPartIntelligentQaInterfaceComRespDto_1 = implementThirdPartIntelligentQaInterfaceComRespDto;
                    }
                } else if ((reqDto != null && reqDto.getBusModelVersion() != null && reqDto.getBusModelVersion().equals("LONG_TEXT_VERSION"))) {
                    //elseif(D2执行导向第三方智能问答(公共).业务模型版本 等于 长文本版本)  73756

                    ImplementThirdPartIntelligentQaInterfaceComRespDto implementThirdPartIntelligentQaInterfaceComRespDto_2 = null;
                    if (queryConfItemMatchAnswerDetailComRespDto != null) {
                        ImplementThirdPartIntelligentQaInterfaceComReqDto implementThirdPartIntelligentQaInterfaceComReqDto_1 = new ImplementThirdPartIntelligentQaInterfaceComReqDto();
                        if (queryConfItemMatchAnswerDetailComRespDto != null) {
                            implementThirdPartIntelligentQaInterfaceComReqDto_1.setIntelliQaAddress(queryConfItemMatchAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:1400577_1_73789
                            implementThirdPartIntelligentQaInterfaceComReqDto_1.setKey(queryConfItemMatchAnswerDetailComRespDto.getExtensionField2());//SimpleFieldAssign//sourceId:1400578_1_73789
                        }
                        if (receptionServiceRes != null) {
                            implementThirdPartIntelligentQaInterfaceComReqDto_1.setModelVersion(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1400579_1_73789
                        }
                        if (reqDto != null && reqDto.getGetListIntelligentAnswersList() != null && !CollectionUtil.isEmpty(reqDto.getGetListIntelligentAnswersList())) {
                            implementThirdPartIntelligentQaInterfaceComReqDto_1.setGetListIntelligentAnswersList(reqDto.getGetListIntelligentAnswersList().stream().map(item -> BeanUtil.toBean(item, GetListIntelligentAnswersDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1400580_1_73789
                        }

                        /*D2执行第三方智能问答接口(公共)[8115]   */
                        Assert.isNull(implementThirdPartIntelligentQaInterfaceComReqDto_1.getIntelliQaAddress(), "D2执行导向第三方智能问答(公共)-D2执行第三方智能问答接口(公共)-第三方智能问答地址不能为空", false);
                        Assert.isNull(implementThirdPartIntelligentQaInterfaceComReqDto_1.getKey(), "D2执行导向第三方智能问答(公共)-D2执行第三方智能问答接口(公共)-key不能为空", false);
                        Assert.isNull(implementThirdPartIntelligentQaInterfaceComReqDto_1.getModelVersion(), "D2执行导向第三方智能问答(公共)-D2执行第三方智能问答接口(公共)-模型版本不能为空", false);
                        implementThirdPartIntelligentQaInterfaceComRespDto_2 = implementThirdPartIntelligentQaInterfaceCom(implementThirdPartIntelligentQaInterfaceComReqDto_1)/*vcase invoke 同服务,同domain*/;


                        implementThirdPartIntelligentQaInterfaceComRespDto_1 = implementThirdPartIntelligentQaInterfaceComRespDto_2;
                    }
                }
            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("ERNIE_BOT"))) {
                //elseif(D2-3查第三方智能问答接口地址密钥.答案值 等于 文心一言)  73755

            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("TENCENT_HUNYUAN"))) {
                //elseif(D2-3查第三方智能问答接口地址密钥.答案值 等于 腾讯混元)  73757

            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("HUAWEI_PANGU"))) {
                //elseif(D2-3查第三方智能问答接口地址密钥.答案值 等于 华为盘古)  73758

            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("IFLYTEK_SPARK"))) {
                //elseif(D2-3查第三方智能问答接口地址密钥.答案值 等于 讯飞星火)  73759

            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("TSINGHUA_ChATGLM"))) {
                //elseif(D2-3查第三方智能问答接口地址密钥.答案值 等于 清华ChatGLM)  73760

            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("FACEBOOK_LLAMA"))) {
                //elseif(D2-3查第三方智能问答接口地址密钥.答案值 等于 脸书Llama)  73761

            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("CHATGPT"))) {
                //elseif(D2-3查第三方智能问答接口地址密钥.答案值 等于 chatGpt)  73762

            } else if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("GOOGLE_GEMINI"))) {
                //elseif(D2-3查第三方智能问答接口地址密钥.答案值 等于 谷歌Gemini)  73763

            }
        }
        ImplementGuidedThirdPartyIntelligentQaComRespDto retData = new ImplementGuidedThirdPartyIntelligentQaComRespDto();
        if (implementThirdPartIntelligentQaInterfaceComRespDto_1 != null) {
            retData.setContent(implementThirdPartIntelligentQaInterfaceComRespDto_1.getContent());//SimpleFieldAssign//sourceId:1400585_1
            retData.setRole(implementThirdPartIntelligentQaInterfaceComRespDto_1.getRole());//SimpleFieldAssign//sourceId:1400586_1
        }


        return retData;
    }

    /**
     * D2执行人工解析指令参数(公共)[8104]
     * gen by moon at 12/10/2023, 7:18:19 PM
     */
    @Trace(operationName = "D2执行人工解析指令参数(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementManuallyParsingInstructionParametersComRespDto implementManuallyParsingInstructionParametersCom(ImplementManuallyParsingInstructionParametersComReqDto reqDto) {


        ImplementManuallyParsingInstructionParametersRespDto manuallyParsingInstructionParametersRes_1 = null;
//步骤0: M2执行人工解析指令参数 - implementManuallyParsingInstructionParameters
        //ModelCode: manuallyParsingInstructionParameters
        ImplementManuallyParsingInstructionParametersRespDto manuallyParsingInstructionParametersRes = null;
        ImplementManuallyParsingInstructionParametersReqDto manuallyParsingInstructionParametersReq = new ImplementManuallyParsingInstructionParametersReqDto();
        if (reqDto != null) {
            manuallyParsingInstructionParametersReq.setContent(reqDto.getContent());//SimpleFieldAssign//sourceId:1400624_1
        }

        /*M2执行人工解析指令参数[8117]   */
        Assert.isNull(manuallyParsingInstructionParametersReq.getContent(), "D2执行人工解析指令参数(公共)-M2执行人工解析指令参数-消息内容不能为空", false);
        manuallyParsingInstructionParametersRes = nbIntelligentCommunication.implementManuallyParsingInstructionParameters(manuallyParsingInstructionParametersReq);


        manuallyParsingInstructionParametersRes_1 = manuallyParsingInstructionParametersRes;

        ImplementManuallyParsingInstructionParametersComRespDto retData = new ImplementManuallyParsingInstructionParametersComRespDto();
        if (manuallyParsingInstructionParametersRes_1 != null) {
            retData.setCustomField(manuallyParsingInstructionParametersRes_1.getCustomField());//SimpleFieldAssign//sourceId:1401783_1
            retData.setCustomField1(manuallyParsingInstructionParametersRes_1.getCustomField1());//SimpleFieldAssign//sourceId:1400635_1
            retData.setCustomField2(manuallyParsingInstructionParametersRes_1.getCustomField2());//SimpleFieldAssign//sourceId:1400636_1
            retData.setCustomField3(manuallyParsingInstructionParametersRes_1.getCustomField3());//SimpleFieldAssign//sourceId:1400637_1
            retData.setCustomField4(manuallyParsingInstructionParametersRes_1.getCustomField4());//SimpleFieldAssign//sourceId:1400638_1
            retData.setCustomField5(manuallyParsingInstructionParametersRes_1.getCustomField5());//SimpleFieldAssign//sourceId:1400639_1
            retData.setCustomField6(manuallyParsingInstructionParametersRes_1.getCustomField6());//SimpleFieldAssign//sourceId:1400640_1
            retData.setCustomField7(manuallyParsingInstructionParametersRes_1.getCustomField7());//SimpleFieldAssign//sourceId:1400641_1
            retData.setCustomField8(manuallyParsingInstructionParametersRes_1.getCustomField8());//SimpleFieldAssign//sourceId:1400642_1
        }


        return retData;
    }

    /**
     * D2执行强提醒列表(公共)[8106]
     * gen by moon at 12/10/2023, 3:51:18 PM
     */
    @Trace(operationName = "D2执行强提醒列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementStrongReminderListComRespDto implementStrongReminderListCom(ImplementStrongReminderListComReqDto reqDto) {


        List<OmsMessage> listOmsMessage_1 = new ArrayList<>();
//步骤0: 2-5-03查询成员消息接收列表 - queryMemberMsgReceiveList
        List<OmsMessageMember> listOmsMessageMember = new ArrayList<>();
        QueryMemberMsgReceiveListReq queryMemberMsgReceiveListReq = new QueryMemberMsgReceiveListReq();
        if (reqDto != null) {
            queryMemberMsgReceiveListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1400680_1
            queryMemberMsgReceiveListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1400687_1
            queryMemberMsgReceiveListReq.setMessageImportantLevel(reqDto.getMessageImportantLevel());//SimpleFieldAssign//sourceId:1400684_1
            queryMemberMsgReceiveListReq.setIsRead(reqDto.getIsRead());//SimpleFieldAssign//sourceId:1400686_1
            queryMemberMsgReceiveListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1400682_1
        }

        /*2-5-03查询成员消息接收列表[4029]   */
        Assert.isNull(queryMemberMsgReceiveListReq.getOriginalRoleMemberId(), "D2执行强提醒列表(公共)-2-5-03查询成员消息接收列表-所属身份人员ID不能为空", false);
        Assert.isNull(queryMemberMsgReceiveListReq.getUserId(), "D2执行强提醒列表(公共)-2-5-03查询成员消息接收列表-所属个人账号ID不能为空", false);
        Assert.isNull(queryMemberMsgReceiveListReq.getMessageImportantLevel(), "D2执行强提醒列表(公共)-2-5-03查询成员消息接收列表-消息重要紧急度层级不能为空", false);
        Assert.isNull(queryMemberMsgReceiveListReq.getIsRead(), "D2执行强提醒列表(公共)-2-5-03查询成员消息接收列表-是否已读不能为空", false);
        Assert.isNull(queryMemberMsgReceiveListReq.getSpaceId(), "D2执行强提醒列表(公共)-2-5-03查询成员消息接收列表-创建于空间ID不能为空", false);
        listOmsMessageMember = mOmsMessageMemberService.queryMemberMsgReceiveList(queryMemberMsgReceiveListReq)/*vcase invoke 本地 method 方法调用;*/;


//步骤1: 2-5-02批量查询消息 - batchQueryMessage
        List<OmsMessage> listOmsMessage = new ArrayList<>();
        if (listOmsMessageMember != null && !CollectionUtil.isEmpty(listOmsMessageMember) && listOmsMessageMember.size() > 0) {
            BatchQueryMessageReq batchQueryMessageReq = new BatchQueryMessageReq();
            if (listOmsMessageMember != null && !CollectionUtil.isEmpty(listOmsMessageMember) && listOmsMessageMember != null && !CollectionUtil.isEmpty(listOmsMessageMember)) {
                batchQueryMessageReq.setMessageList(listOmsMessageMember.stream().map(item -> item.getMessageId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1400674_1
            }
            if (reqDto != null) {
                batchQueryMessageReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1400675_1
            }

            /*2-5-02批量查询消息[3983]   */
            Assert.isNull(batchQueryMessageReq.getSpaceId(), "D2执行强提醒列表(公共)-2-5-02批量查询消息-创建于空间ID不能为空", false);
            listOmsMessage = mOmsMessageService.batchQueryMessage(batchQueryMessageReq)/*vcase invoke 本地 method 方法调用;*/;


            listOmsMessage_1 = listOmsMessage;
        }

        ImplementStrongReminderListComRespDto retData = new ImplementStrongReminderListComRespDto();
        retData.setMessageList(listOmsMessage_1.stream().map(item -> BeanUtil.toBean(item, MessageDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1400698_1


        return retData;
    }

    /**
     * D2执行智能指令沟通服务(公共)[8102]
     * gen by moon at 12/10/2023, 7:18:33 PM
     */
    @Trace(operationName = "D2执行智能指令沟通服务(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementIntelligentCommandCommunicationServiceComRespDto implementIntelligentCommandCommunicationServiceCom(ImplementIntelligentCommandCommunicationServiceComReqDto reqDto) {

//
//      ObtainReceiveFieldsRespDto receptionServiceRes_3 =null;
////virtualUsage M2-约定新增问题任务成功文案  56379
//      //ModelCode: receptionService
//        ObtainReceiveFieldsRespDto receptionServiceRes = null;
//    ObtainReceiveFieldsReqDto receptionServiceReq=new ObtainReceiveFieldsReqDto();
//  receptionServiceReq.setCustomField1("您提出的问题已成功～");//CUSTOM_CONVENTION//sourceId:1403580_1_56379
//receptionServiceReq.setCustomField2("您安排的任务已成功～");//CUSTOM_CONVENTION//sourceId:1403581_1_56379
//
//    /*M2-约定新增问题任务成功文案[4007]  用于特殊方法接收上游入参。 */
//    Assert.isNull(receptionServiceReq.getCustomField1(),"D2执行智能指令沟通服务(公共)-M2-约定新增问题任务成功文案-自定义字段1不能为空",false);
//Assert.isNull(receptionServiceReq.getCustomField2(),"D2执行智能指令沟通服务(公共)-M2-约定新增问题任务成功文案-自定义字段2不能为空",false);
//      receptionServiceRes = nbIntelligentCommunication.obtainReceiveFields(receptionServiceReq);
//
//
//
////virtualUsage D1执行设备获取组织个人信息(公共)  56344
//      ImplementDeviceAcquisitionOrgPersonalInfoComRespDto implementDeviceAcquisitionOrgPersonalInfoComRespDto = null;
//    Object implementDeviceAcquisitionOrgPersonalInfoComReqDto=new Object();
//  if(reqDto!=null){
//      implementDeviceAcquisitionOrgPersonalInfoComReqDto=reqDto.getSn();;//SimpleFieldAssign//sourceId:1401762_1_56344
//implementDeviceAcquisitionOrgPersonalInfoComReqDto=reqDto.getAppId();;//SimpleFieldAssign//sourceId:1401763_1_56344
//implementDeviceAcquisitionOrgPersonalInfoComReqDto=reqDto.getApiKey();;//SimpleFieldAssign//sourceId:1401764_1_56344
//implementDeviceAcquisitionOrgPersonalInfoComReqDto=reqDto.getApiSecret();;//SimpleFieldAssign//sourceId:1401765_1_56344
//    }
//
//    /*D1执行设备获取组织个人信息(公共)[8108]   */
//    Assert.isNull(implementDeviceAcquisitionOrgPersonalInfoComReqDto,"D2执行智能指令沟通服务(公共)-D1执行设备获取组织个人信息(公共)-设备号不能为空",false);
//Assert.isNull(implementDeviceAcquisitionOrgPersonalInfoComReqDto,"D2执行智能指令沟通服务(公共)-D1执行设备获取组织个人信息(公共)-应用ID不能为空",false);
//Assert.isNull(implementDeviceAcquisitionOrgPersonalInfoComReqDto,"D2执行智能指令沟通服务(公共)-D1执行设备获取组织个人信息(公共)-应用key不能为空",false);
//Assert.isNull(implementDeviceAcquisitionOrgPersonalInfoComReqDto,"D2执行智能指令沟通服务(公共)-D1执行设备获取组织个人信息(公共)-应用密码不能为空",false);
//      implementDeviceAcquisitionOrgPersonalInfoComRespDto = baseOrgService.implementDeviceAcquisitionOrgPersonalInfoCom(implementDeviceAcquisitionOrgPersonalInfoComReqDto)/*vcase invoke 跨dubbo调用;*/;
//
//
//
////virtualUsage D2查询用于智能问答的指令模板  56345
//      QueryConfItemDetailComRespDto queryConfItemDetailComRespDto = null;
//    QueryConfItemDetailComReqDto queryConfItemDetailComReqDto=new QueryConfItemDetailComReqDto();
//  queryConfItemDetailComReqDto.setConfItemCode("THIRD_QA_SYSTEM");//CUSTOM_CONVENTION//sourceId:1396844_1_56345
//queryConfItemDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1396845_1_56345
//
//    /*D2查询用于智能问答的指令模板[8110]   */
//    Assert.isNull(queryConfItemDetailComReqDto.getConfItemCode(),"D2执行智能指令沟通服务(公共)-D2查询用于智能问答的指令模板-配置项标识不能为空",false);
//Assert.isNull(queryConfItemDetailComReqDto.getSubjectLifeCycle(),"D2执行智能指令沟通服务(公共)-D2查询用于智能问答的指令模板-主体生命周期不能为空",false);
//      queryConfItemDetailComRespDto = confSchemeService.queryConfItemDetailCom(queryConfItemDetailComReqDto)/*vcase invoke isSameApp*/;
//      Assert.isTrue(queryConfItemDetailComRespDto== null||  queryConfItemDetailComRespDto.getConfItemDes() ==null,"找不到数据，系统异常",false);
//
//
////virtualUsage D2执行组装指令模板提问内容  56346
//      ImplementRoboticSceneSemanticEngineComRespDto implementRoboticSceneSemanticEngineComRespDto = null;
//    if(queryConfItemDetailComRespDto !=null){
//          ImplementRoboticSceneSemanticEngineComReqDto implementRoboticSceneSemanticEngineComReqDto=new ImplementRoboticSceneSemanticEngineComReqDto();
//  implementRoboticSceneSemanticEngineComReqDto.setTemplateSemanticEngineCode("ASSEMBLY_INSTRUCTION_QUS_CONT_TEMP");//CUSTOM_CONVENTION//sourceId:1401770_1_56346
//if(reqDto!=null){
//      implementRoboticSceneSemanticEngineComReqDto.setContent(reqDto.getContent());//SimpleFieldAssign//sourceId:1401771_1_56346
//    }
//if(queryConfItemDetailComRespDto!=null){
//      implementRoboticSceneSemanticEngineComReqDto.setInstructionTemplate(queryConfItemDetailComRespDto.getConfItemDes());//SimpleFieldAssign//sourceId:1401772_1_56346
//    }
//
//    /*D2执行组装指令模板提问内容[8112]   */
//    Assert.isNull(implementRoboticSceneSemanticEngineComReqDto.getTemplateSemanticEngineCode(),"D2执行智能指令沟通服务(公共)-D2执行组装指令模板提问内容-模板引擎标识不能为空",false);
//Assert.isNull(implementRoboticSceneSemanticEngineComReqDto.getContent(),"D2执行智能指令沟通服务(公共)-D2执行组装指令模板提问内容-消息内容不能为空",false);
//Assert.isNull(implementRoboticSceneSemanticEngineComReqDto.getInstructionTemplate(),"D2执行智能指令沟通服务(公共)-D2执行组装指令模板提问内容-指令模板部分内容不能为空",false);
//      implementRoboticSceneSemanticEngineComRespDto = templateEngineService.implementRoboticSceneSemanticEngineCom(implementRoboticSceneSemanticEngineComReqDto)/*vcase invoke isSameApp*/;
//      Assert.isTrue(implementRoboticSceneSemanticEngineComRespDto== null||  implementRoboticSceneSemanticEngineComRespDto.getObjectName() ==null,"找不到数据，系统异常",false);
//
//
//           }
////virtualUsage D2执行输入消息内容单字段转数据集  56358
//      ImplementMutDataToOneDatasComRespDto implementMutDataToOneDatasComRespDto = null;
//    if(implementRoboticSceneSemanticEngineComRespDto !=null){
//          ImplementMutDataToOneDatasComReqDto implementMutDataToOneDatasComReqDto=new ImplementMutDataToOneDatasComReqDto();
//  if(implementRoboticSceneSemanticEngineComRespDto!=null){
//      implementMutDataToOneDatasComReqDto.setCustomField(implementRoboticSceneSemanticEngineComRespDto.getObjectName());//SimpleFieldAssign//sourceId:1400663_1_56358
//    }
//
//    /*D2执行输入消息内容单字段转数据集[5864]   */
//    Assert.isNull(implementMutDataToOneDatasComReqDto.getCustomField(),"D2执行智能指令沟通服务(公共)-D2执行输入消息内容单字段转数据集-自定义字段不能为空",false);
//      implementMutDataToOneDatasComRespDto = interfaceModeService.implementMutDataToOneDatasCom(implementMutDataToOneDatasComReqDto)/*vcase invoke isSameApp*/;
//
//
//
//           }
////virtualUsage D2执行导向第三方智能问答(公共)  56357
//      ImplementGuidedThirdPartyIntelligentQaComRespDto implementGuidedThirdPartyIntelligentQaComRespDto = null;
//    if(implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null&&implementMutDataToOneDatasComRespDto !=null){
//          ImplementGuidedThirdPartyIntelligentQaComReqDto implementGuidedThirdPartyIntelligentQaComReqDto=new ImplementGuidedThirdPartyIntelligentQaComReqDto();
//  if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      implementGuidedThirdPartyIntelligentQaComReqDto.setResultAspObjId(implementDeviceAcquisitionOrgPersonalInfoComRespDto);//SimpleFieldAssign//sourceId:1400587_1_56357
//    }
//if(implementMutDataToOneDatasComRespDto!=null){
//      //simpleList-to-objLists
//    for (String item : implementMutDataToOneDatasComRespDto.getComDatasList()) {
//                GetListIntelligentAnswersDto oneItem = new GetListIntelligentAnswersDto();
//                oneItem.setRole("user");//sourceId:282040_2_56357
//if(implementMutDataToOneDatasComRespDto!=null){
//      oneItem.setContent(item);//SimpleFieldAssign//sourceId:282039_2_56357
//    }
//
//                implementGuidedThirdPartyIntelligentQaComReqDto.getGetListIntelligentAnswersList().add(oneItem);
//            }//sourceId:1400588_1_56357
//    }
//
//    /*D2执行导向第三方智能问答(公共)[8103]   */
//    Assert.isNull(implementGuidedThirdPartyIntelligentQaComReqDto.getResultAspObjId(),"D2执行智能指令沟通服务(公共)-D2执行导向第三方智能问答(公共)-开通对象ID不能为空",false);
//      implementGuidedThirdPartyIntelligentQaComRespDto = implementGuidedThirdPartyIntelligentQaCom(implementGuidedThirdPartyIntelligentQaComReqDto)/*vcase invoke 同服务,同domain*/;
//      Assert.isTrue(implementGuidedThirdPartyIntelligentQaComRespDto== null||  implementGuidedThirdPartyIntelligentQaComRespDto.getContent() ==null||implementGuidedThirdPartyIntelligentQaComRespDto== null||  implementGuidedThirdPartyIntelligentQaComRespDto.getRole() ==null,"找不到数据，系统异常",false);
//
//
//           }
////virtualUsage D2执行人工解析指令参数(公共)  56347
//      ImplementManuallyParsingInstructionParametersComRespDto implementManuallyParsingInstructionParametersComRespDto = null;
//    if(implementGuidedThirdPartyIntelligentQaComRespDto !=null){
//          ImplementManuallyParsingInstructionParametersComReqDto implementManuallyParsingInstructionParametersComReqDto=new ImplementManuallyParsingInstructionParametersComReqDto();
//  if(implementGuidedThirdPartyIntelligentQaComRespDto!=null){
//      implementManuallyParsingInstructionParametersComReqDto.setContent(implementGuidedThirdPartyIntelligentQaComRespDto.getContent());//SimpleFieldAssign//sourceId:1400664_1_56347
//    }
//
//    /*D2执行人工解析指令参数(公共)[8104]   */
//    Assert.isNull(implementManuallyParsingInstructionParametersComReqDto.getContent(),"D2执行智能指令沟通服务(公共)-D2执行人工解析指令参数(公共)-消息内容不能为空",false);
//      implementManuallyParsingInstructionParametersComRespDto = implementManuallyParsingInstructionParametersCom(implementManuallyParsingInstructionParametersComReqDto)/*vcase invoke 同服务,同domain*/;
//
//
//
//           }
//if((implementManuallyParsingInstructionParametersComRespDto!= null&&  implementManuallyParsingInstructionParametersComRespDto.getCustomField() !=null && implementManuallyParsingInstructionParametersComRespDto.getCustomField().equals("IMPORT_WORK_REMIND"))) {
//        //if(D2执行人工解析指令参数(公共).自定义字段 等于 了解重要工作提醒)  56348
//
//ImplementStrongReminderListComRespDto implementStrongReminderListComRespDto = null;
//    if(implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null){
//          ImplementStrongReminderListComReqDto implementStrongReminderListComReqDto=new ImplementStrongReminderListComReqDto();
//  implementStrongReminderListComReqDto.setMessageImportantLevel(Long.valueOf(3));//CUSTOM_CONVENTION//sourceId:1400701_1_56359
//implementStrongReminderListComReqDto.setIsRead("FALSE");//sourceId:1400702_1_56359
//if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      implementStrongReminderListComReqDto.setOriginalRoleMemberId(implementDeviceAcquisitionOrgPersonalInfoComRespDto);//SimpleFieldAssign//sourceId:1400699_1_56359
//implementStrongReminderListComReqDto.setUserId(implementDeviceAcquisitionOrgPersonalInfoComRespDto);//SimpleFieldAssign//sourceId:1400700_1_56359
//implementStrongReminderListComReqDto.setSpaceId(implementDeviceAcquisitionOrgPersonalInfoComRespDto);//SimpleFieldAssign//sourceId:1400703_1_56359
//    }
//
//    /*D2执行强提醒列表(公共)[8106]   */
//    Assert.isNull(implementStrongReminderListComReqDto.getOriginalRoleMemberId(),"D2执行智能指令沟通服务(公共)-D2执行强提醒列表(公共)-所属身份人员ID不能为空",false);
//Assert.isNull(implementStrongReminderListComReqDto.getUserId(),"D2执行智能指令沟通服务(公共)-D2执行强提醒列表(公共)-所属个人账号ID不能为空",false);
//Assert.isNull(implementStrongReminderListComReqDto.getMessageImportantLevel(),"D2执行智能指令沟通服务(公共)-D2执行强提醒列表(公共)-消息重要紧急度层级不能为空",false);
//Assert.isNull(implementStrongReminderListComReqDto.getIsRead(),"D2执行智能指令沟通服务(公共)-D2执行强提醒列表(公共)-是否已读不能为空",false);
//Assert.isNull(implementStrongReminderListComReqDto.getSpaceId(),"D2执行智能指令沟通服务(公共)-D2执行强提醒列表(公共)-创建于空间ID不能为空",false);
//      implementStrongReminderListComRespDto = implementStrongReminderListCom(implementStrongReminderListComReqDto)/*vcase invoke 同服务,同domain*/;
//
//
//
//           }
//ImplementDataAppointFormatShiftTextComRespDto implementDataAppointFormatShiftTextComRespDto = null;
//    if(implementStrongReminderListComRespDto !=null){
//          ImplementDataAppointFormatShiftTextComReqDto implementDataAppointFormatShiftTextComReqDto=new ImplementDataAppointFormatShiftTextComReqDto();
//  if(implementStrongReminderListComRespDto!= null&&  implementStrongReminderListComRespDto.getMessageList() !=null&& !CollectionUtil.isEmpty(implementStrongReminderListComRespDto.getMessageList())){
//      implementDataAppointFormatShiftTextComReqDto.setDataAppointFormatShiftTextList(implementStrongReminderListComRespDto.getMessageList().stream().map(item->item.getMessageContent())
//        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1401811_1_56362
//    }
//
//    /*D2执行强提醒内容列表转单字段[7515]   */
//
//      implementDataAppointFormatShiftTextComRespDto = interfaceModeService.implementDataAppointFormatShiftTextCom(implementDataAppointFormatShiftTextComReqDto)/*vcase invoke isSameApp*/;
//
//
//
//           }
//QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
//    if(implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null){
//          QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new QueryConfItemMatchAnswerDetailComReqDto();
//  queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("FORCING_ REMINDER_ COPY_ITEM");//CUSTOM_CONVENTION//sourceId:1401807_1_56361
//queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1401808_1_56361
//if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(implementDeviceAcquisitionOrgPersonalInfoComRespDto);//SimpleFieldAssign//sourceId:1401806_1_56361
//    }
//
//    /*D2-3查强提醒基础文案[2486]   */
//    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"D2执行智能指令沟通服务(公共)-D2-3查强提醒基础文案-开通对象ID不能为空",false);
//Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"D2执行智能指令沟通服务(公共)-D2-3查强提醒基础文案-配置项标识不能为空",false);
//Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"D2执行智能指令沟通服务(公共)-D2-3查强提醒基础文案-是否标准答案不能为空",false);
//      queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto)/*vcase invoke isSameApp*/;
//
//
//
//           }
//ImplementRoboticSceneSemanticEngineComRespDto implementRoboticSceneSemanticEngineComRespDto_2 = null;
//    if(queryConfItemMatchAnswerDetailComRespDto !=null&&implementDataAppointFormatShiftTextComRespDto !=null){
//          ImplementRoboticSceneSemanticEngineComReqDto implementRoboticSceneSemanticEngineComReqDto_1=new ImplementRoboticSceneSemanticEngineComReqDto();
//  implementRoboticSceneSemanticEngineComReqDto_1.setTemplateSemanticEngineCode("ASSEMBLY_STRONG_REMINDER_QUS_CONT_TEMP");//CUSTOM_CONVENTION//sourceId:1401776_1_56360
//if(queryConfItemMatchAnswerDetailComRespDto!=null){
//      implementRoboticSceneSemanticEngineComReqDto_1.setStrongReminderBasicCopy(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1401779_1_56360
//    }
//if(implementDataAppointFormatShiftTextComRespDto!=null){
//      implementRoboticSceneSemanticEngineComReqDto_1.setStrongReminderContent(implementDataAppointFormatShiftTextComRespDto.getCustomText());//SimpleFieldAssign//sourceId:1401780_1_56360
//    }
//
//    /*D2组织强提醒提问内容[8112]   */
//    Assert.isNull(implementRoboticSceneSemanticEngineComReqDto_1.getTemplateSemanticEngineCode(),"D2执行智能指令沟通服务(公共)-D2组织强提醒提问内容-模板引擎标识不能为空",false);
//Assert.isNull(implementRoboticSceneSemanticEngineComReqDto_1.getStrongReminderBasicCopy(),"D2执行智能指令沟通服务(公共)-D2组织强提醒提问内容-强提醒部分内容不能为空",false);
//Assert.isNull(implementRoboticSceneSemanticEngineComReqDto_1.getStrongReminderContent(),"D2执行智能指令沟通服务(公共)-D2组织强提醒提问内容-强提醒核心内容不能为空",false);
//      implementRoboticSceneSemanticEngineComRespDto_2 = templateEngineService.implementRoboticSceneSemanticEngineCom(implementRoboticSceneSemanticEngineComReqDto_1)/*vcase invoke isSameApp*/;
//      Assert.isTrue(implementRoboticSceneSemanticEngineComRespDto_2== null||  implementRoboticSceneSemanticEngineComRespDto_2.getObjectName() ==null,"找不到数据，系统异常",false);
//
//
//           }
//ImplementMutDataToOneDatasComRespDto implementMutDataToOneDatasComRespDto_2 = null;
//    if(implementRoboticSceneSemanticEngineComRespDto_2 !=null){
//          ImplementMutDataToOneDatasComReqDto implementMutDataToOneDatasComReqDto_1=new ImplementMutDataToOneDatasComReqDto();
//  if(implementRoboticSceneSemanticEngineComRespDto_2!=null){
//      implementMutDataToOneDatasComReqDto_1.setCustomField(implementRoboticSceneSemanticEngineComRespDto_2.getObjectName());//SimpleFieldAssign//sourceId:1400663_1_56365
//    }
//
//    /*D2执行输入消息内容单字段转数据集[5864]   */
//    Assert.isNull(implementMutDataToOneDatasComReqDto_1.getCustomField(),"D2执行智能指令沟通服务(公共)-D2执行输入消息内容单字段转数据集-自定义字段不能为空",false);
//      implementMutDataToOneDatasComRespDto_2 = interfaceModeService.implementMutDataToOneDatasCom(implementMutDataToOneDatasComReqDto_1)/*vcase invoke isSameApp*/;
//
//
//
//           }
//ImplementGuidedThirdPartyIntelligentQaComRespDto implementGuidedThirdPartyIntelligentQaComRespDto_2 = null;
//    if(implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null&&implementMutDataToOneDatasComRespDto_2 !=null){
//          ImplementGuidedThirdPartyIntelligentQaComReqDto implementGuidedThirdPartyIntelligentQaComReqDto_1=new ImplementGuidedThirdPartyIntelligentQaComReqDto();
//  if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      implementGuidedThirdPartyIntelligentQaComReqDto_1.setResultAspObjId(implementDeviceAcquisitionOrgPersonalInfoComRespDto);//SimpleFieldAssign//sourceId:1400587_1_56364
//    }
//if(implementMutDataToOneDatasComRespDto_2!=null){
//      //simpleList-to-objLists
//    for (String item : implementMutDataToOneDatasComRespDto_2.getComDatasList()) {
//                GetListIntelligentAnswersDto oneItem = new GetListIntelligentAnswersDto();
//                oneItem.setRole("user");//sourceId:282040_2_56364
//if(implementMutDataToOneDatasComRespDto_2!=null){
//      oneItem.setContent(item);//SimpleFieldAssign//sourceId:282039_2_56364
//    }
//
//                implementGuidedThirdPartyIntelligentQaComReqDto_1.getGetListIntelligentAnswersList().add(oneItem);
//            }//sourceId:1400588_1_56364
//    }
//
//    /*D2执行导向第三方智能问答(公共)[8103]   */
//    Assert.isNull(implementGuidedThirdPartyIntelligentQaComReqDto_1.getResultAspObjId(),"D2执行智能指令沟通服务(公共)-D2执行导向第三方智能问答(公共)-开通对象ID不能为空",false);
//      implementGuidedThirdPartyIntelligentQaComRespDto_2 = implementGuidedThirdPartyIntelligentQaCom(implementGuidedThirdPartyIntelligentQaComReqDto_1)/*vcase invoke 同服务,同domain*/;
//      Assert.isTrue(implementGuidedThirdPartyIntelligentQaComRespDto_2== null||  implementGuidedThirdPartyIntelligentQaComRespDto_2.getContent() ==null||implementGuidedThirdPartyIntelligentQaComRespDto_2== null||  implementGuidedThirdPartyIntelligentQaComRespDto_2.getRole() ==null,"找不到数据，系统异常",false);
//
//
//           }
////ModelCode: receptionService
//        ObtainReceiveFieldsRespDto receptionServiceRes_2 = null;
//    if(implementGuidedThirdPartyIntelligentQaComRespDto_2 !=null){
//          ObtainReceiveFieldsReqDto receptionServiceReq_1=new ObtainReceiveFieldsReqDto();
//  if(implementGuidedThirdPartyIntelligentQaComRespDto_2!=null){
//      receptionServiceReq_1.setContent(implementGuidedThirdPartyIntelligentQaComRespDto_2.getContent());//SimpleFieldAssign//sourceId:1402713_1_56367
//    }
//
//    /*M2-接收回答[4007]  用于特殊方法接收上游入参。 */
//    Assert.isNull(receptionServiceReq_1.getContent(),"D2执行智能指令沟通服务(公共)-M2-接收回答-消息内容不能为空",false);
//      receptionServiceRes_2 = nbIntelligentCommunication.obtainReceiveFields(receptionServiceReq_1);
//
//
//      receptionServiceRes_3 = receptionServiceRes_2;
//           }
//      }
//else if((implementManuallyParsingInstructionParametersComRespDto!= null&&  implementManuallyParsingInstructionParametersComRespDto.getCustomField() !=null && implementManuallyParsingInstructionParametersComRespDto.getCustomField().equals("QUESTION_ANSWER"))){
//       //elseif(D2执行人工解析指令参数(公共).自定义字段 等于 想问答)  56349
//
//    }
//else if((implementManuallyParsingInstructionParametersComRespDto!= null&&  implementManuallyParsingInstructionParametersComRespDto.getCustomField() !=null && implementManuallyParsingInstructionParametersComRespDto.getCustomField().equals("INTELLIGENT_SERVICE"))){
//       //elseif(D2执行人工解析指令参数(公共).自定义字段 等于 智能服务专业工作)  56350
//
//    }
//else if((implementManuallyParsingInstructionParametersComRespDto!= null&&  implementManuallyParsingInstructionParametersComRespDto.getCustomField() !=null && implementManuallyParsingInstructionParametersComRespDto.getCustomField().equals("RAISE_QUESTION"))){
//       //elseif(D2执行人工解析指令参数(公共).自定义字段 等于 提出问题)  56351
//
//QueryInductionDeptDetailComRespDto queryInductionDeptDetailComRespDto = null;
//    if(implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null){
//          Object queryInductionDeptDetailComReqDto=new Object();
//  queryInductionDeptDetailComReqDto.setInductionUnitTypeCode("DEPT");//sourceId:1403614_1_56376
//queryInductionDeptDetailComReqDto.setIsMainInduction("TRUE");//sourceId:1402946_1_56376
//queryInductionDeptDetailComReqDto.setIsTransaction("FALSE");//sourceId:1402947_1_56376
//queryInductionDeptDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1402948_1_56376
//if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      queryInductionDeptDetailComReqDto=implementDeviceAcquisitionOrgPersonalInfoComRespDto;;//SimpleFieldAssign//sourceId:1403654_1_56376
//queryInductionDeptDetailComReqDto=implementDeviceAcquisitionOrgPersonalInfoComRespDto;;//SimpleFieldAssign//sourceId:1402929_1_56376
//    }
//
//    /*D1查询就职的部门详情(公共)[7829]   */
//    Assert.isNull(queryInductionDeptDetailComReqDto,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-个人账号ID不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-就职单位类型实例不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-是否主岗不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-是否异动不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-主体生命周期不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-创建于空间ID不能为空",false);
//      queryInductionDeptDetailComRespDto = baseInductionRecordService.queryInductionDeptDetailCom(queryInductionDeptDetailComReqDto)/*vcase invoke 跨dubbo调用;*/;
//
//
//
//           }
//QueryUserInfoDetailComRespDto queryUserInfoDetailComRespDto = null;
//    if(implementManuallyParsingInstructionParametersComRespDto !=null&&implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null){
//          Object queryUserInfoDetailComReqDto=new Object();
//  if(implementManuallyParsingInstructionParametersComRespDto!=null){
//      queryUserInfoDetailComReqDto=implementManuallyParsingInstructionParametersComRespDto.getCustomField3();;//SimpleFieldAssign//sourceId:1403640_1_56388
//    }
//if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      queryUserInfoDetailComReqDto=implementDeviceAcquisitionOrgPersonalInfoComRespDto;;//SimpleFieldAssign//sourceId:1403649_1_56388
//    }
//
//    /*D1-2查询任务问题负责人[408]   */
//    Assert.isNull(queryUserInfoDetailComReqDto,"D2执行智能指令沟通服务(公共)-D1-2查询任务问题负责人-真实姓名不能为空",false);
//Assert.isNull(queryUserInfoDetailComReqDto,"D2执行智能指令沟通服务(公共)-D1-2查询任务问题负责人-创建于空间ID不能为空",false);
//      queryUserInfoDetailComRespDto = baseUserService.queryUserInfoDetailCom(queryUserInfoDetailComReqDto)/*vcase invoke 跨dubbo调用;*/;
//
//
//
//           }
//QueryInductionDeptDetailComRespDto queryInductionDeptDetailComRespDto_2 = null;
//    if(queryUserInfoDetailComRespDto !=null&&implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null){
//          Object queryInductionDeptDetailComReqDto_1=new Object();
//  queryInductionDeptDetailComReqDto_1.setInductionUnitTypeCode("DEPT");//sourceId:1403614_1_56391
//queryInductionDeptDetailComReqDto_1.setIsMainInduction("TRUE");//sourceId:1402946_1_56391
//queryInductionDeptDetailComReqDto_1.setIsTransaction("FALSE");//sourceId:1402947_1_56391
//queryInductionDeptDetailComReqDto_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1402948_1_56391
//if(queryUserInfoDetailComRespDto!=null){
//      queryInductionDeptDetailComReqDto_1=queryUserInfoDetailComRespDto;;//SimpleFieldAssign//sourceId:1403654_1_56391
//    }
//if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      queryInductionDeptDetailComReqDto_1=implementDeviceAcquisitionOrgPersonalInfoComRespDto;;//SimpleFieldAssign//sourceId:1402929_1_56391
//    }
//
//    /*D1查询就职的部门详情(公共)[7829]   */
//    Assert.isNull(queryInductionDeptDetailComReqDto_1,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-个人账号ID不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_1,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-就职单位类型实例不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_1,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-是否主岗不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_1,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-是否异动不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_1,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-主体生命周期不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_1,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-创建于空间ID不能为空",false);
//      queryInductionDeptDetailComRespDto_2 = baseInductionRecordService.queryInductionDeptDetailCom(queryInductionDeptDetailComReqDto_1)/*vcase invoke 跨dubbo调用;*/;
//
//
//
//           }
//AddQuestionBusinessProcessingComRespDto addQuestionBusinessProcessingComRespDto = null;
//    if(implementManuallyParsingInstructionParametersComRespDto !=null&&queryInductionDeptDetailComRespDto !=null&&queryInductionDeptDetailComRespDto_2 !=null){
//          Object addQuestionBusinessProcessingComReqDto=new Object();
//  addQuestionBusinessProcessingComReqDto.setArrangeSubjectTypeCode("OMS_ORG_DEPT");//sourceId:1402984_1_56378
//addQuestionBusinessProcessingComReqDto.setCoordObjectTypeCode("OMS_ORG_DEPT");//sourceId:1402985_1_56378
//addQuestionBusinessProcessingComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1402993_1_56378
//if(implementManuallyParsingInstructionParametersComRespDto!=null){
//      addQuestionBusinessProcessingComReqDto=implementManuallyParsingInstructionParametersComRespDto.getCustomField1();;//SimpleFieldAssign//sourceId:1402979_1_56378
//addQuestionBusinessProcessingComReqDto=implementManuallyParsingInstructionParametersComRespDto.getCustomField5();;//SimpleFieldAssign//sourceId:1402980_1_56378
//addQuestionBusinessProcessingComReqDto.setQuestionLevel(implementManuallyParsingInstructionParametersComRespDto.getCustomField4());//SimpleFieldAssign//sourceId:1402981_1_56378
//    }
//if(queryInductionDeptDetailComRespDto!=null){
//      addQuestionBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto;;//SimpleFieldAssign//sourceId:1402983_1_56378
//addQuestionBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto;;//SimpleFieldAssign//sourceId:1402986_1_56378
//addQuestionBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto;;//SimpleFieldAssign//sourceId:1403631_1_56378
//    }
//if(queryInductionDeptDetailComRespDto_2!=null){
//      addQuestionBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto_2;;//SimpleFieldAssign//sourceId:1402996_1_56378
//    }
//
//    /*D3新增问题业务处理(公共)[7854]   */
//    Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-问题文字简介不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-问题文字描述不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-问题等级不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-安排主体ID不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-安排主体类型编码不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-归属对象类型编码不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-归属对象ID不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-创建人就职记录ID不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-负责人就职记录ID不能为空",false);
//Assert.isNull(addQuestionBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3新增问题业务处理(公共)-主体生命周期不能为空",false);
//      addQuestionBusinessProcessingComRespDto = appQuestionService.addQuestionBusinessProcessingCom(addQuestionBusinessProcessingComReqDto)/*vcase invoke 跨dubbo调用;*/;
//      Assert.isTrue(addQuestionBusinessProcessingComRespDto== null||  addQuestionBusinessProcessingComRespDto ==null,"找不到数据，系统异常",false);
//
//
//           }
////ModelCode: receptionService
//        ObtainReceiveFieldsRespDto receptionServiceRes_4 = null;
//    ObtainReceiveFieldsReqDto receptionServiceReq_2=new ObtainReceiveFieldsReqDto();
//  if(receptionServiceRes!=null){
//      receptionServiceReq_2.setContent(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1402713_1_56380
//    }
//
//    /*M2-接收回答[4007]  用于特殊方法接收上游入参。 */
//    Assert.isNull(receptionServiceReq_2.getContent(),"D2执行智能指令沟通服务(公共)-M2-接收回答-消息内容不能为空",false);
//      receptionServiceRes_4 = nbIntelligentCommunication.obtainReceiveFields(receptionServiceReq_2);
//
//
//      receptionServiceRes_3 = receptionServiceRes_4;
//    }
//else if((implementManuallyParsingInstructionParametersComRespDto!= null&&  implementManuallyParsingInstructionParametersComRespDto.getCustomField() !=null && implementManuallyParsingInstructionParametersComRespDto.getCustomField().equals("ASSIGN_TASK"))){
//       //elseif(D2执行人工解析指令参数(公共).自定义字段 等于 安排任务)  56352
//
//QueryInductionDeptDetailComRespDto queryInductionDeptDetailComRespDto_3 = null;
//    if(implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null){
//          Object queryInductionDeptDetailComReqDto_2=new Object();
//  queryInductionDeptDetailComReqDto_2.setInductionUnitTypeCode("DEPT");//sourceId:1403614_1_56382
//queryInductionDeptDetailComReqDto_2.setIsMainInduction("TRUE");//sourceId:1402946_1_56382
//queryInductionDeptDetailComReqDto_2.setIsTransaction("FALSE");//sourceId:1402947_1_56382
//queryInductionDeptDetailComReqDto_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1402948_1_56382
//if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      queryInductionDeptDetailComReqDto_2=implementDeviceAcquisitionOrgPersonalInfoComRespDto;;//SimpleFieldAssign//sourceId:1403654_1_56382
//queryInductionDeptDetailComReqDto_2=implementDeviceAcquisitionOrgPersonalInfoComRespDto;;//SimpleFieldAssign//sourceId:1402929_1_56382
//    }
//
//    /*D1查询就职的部门详情(公共)[7829]   */
//    Assert.isNull(queryInductionDeptDetailComReqDto_2,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-个人账号ID不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_2,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-就职单位类型实例不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_2,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-是否主岗不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_2,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-是否异动不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_2,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-主体生命周期不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_2,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-创建于空间ID不能为空",false);
//      queryInductionDeptDetailComRespDto_3 = baseInductionRecordService.queryInductionDeptDetailCom(queryInductionDeptDetailComReqDto_2)/*vcase invoke 跨dubbo调用;*/;
//
//
//
//           }
//QueryUserInfoDetailComRespDto queryUserInfoDetailComRespDto_2 = null;
//    if(implementManuallyParsingInstructionParametersComRespDto !=null&&implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null){
//          Object queryUserInfoDetailComReqDto_1=new Object();
//  if(implementManuallyParsingInstructionParametersComRespDto!=null){
//      queryUserInfoDetailComReqDto_1=implementManuallyParsingInstructionParametersComRespDto.getCustomField3();;//SimpleFieldAssign//sourceId:1403640_1_56389
//    }
//if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      queryUserInfoDetailComReqDto_1=implementDeviceAcquisitionOrgPersonalInfoComRespDto;;//SimpleFieldAssign//sourceId:1403649_1_56389
//    }
//
//    /*D1-2查询任务问题负责人[408]   */
//    Assert.isNull(queryUserInfoDetailComReqDto_1,"D2执行智能指令沟通服务(公共)-D1-2查询任务问题负责人-真实姓名不能为空",false);
//Assert.isNull(queryUserInfoDetailComReqDto_1,"D2执行智能指令沟通服务(公共)-D1-2查询任务问题负责人-创建于空间ID不能为空",false);
//      queryUserInfoDetailComRespDto_2 = baseUserService.queryUserInfoDetailCom(queryUserInfoDetailComReqDto_1)/*vcase invoke 跨dubbo调用;*/;
//
//
//
//           }
//QueryInductionDeptDetailComRespDto queryInductionDeptDetailComRespDto_4 = null;
//    if(queryUserInfoDetailComRespDto_2 !=null&&implementDeviceAcquisitionOrgPersonalInfoComRespDto !=null){
//          Object queryInductionDeptDetailComReqDto_3=new Object();
//  queryInductionDeptDetailComReqDto_3.setInductionUnitTypeCode("DEPT");//sourceId:1403614_1_56390
//queryInductionDeptDetailComReqDto_3.setIsMainInduction("TRUE");//sourceId:1402946_1_56390
//queryInductionDeptDetailComReqDto_3.setIsTransaction("FALSE");//sourceId:1402947_1_56390
//queryInductionDeptDetailComReqDto_3.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1402948_1_56390
//if(queryUserInfoDetailComRespDto_2!=null){
//      queryInductionDeptDetailComReqDto_3=queryUserInfoDetailComRespDto_2;;//SimpleFieldAssign//sourceId:1403654_1_56390
//    }
//if(implementDeviceAcquisitionOrgPersonalInfoComRespDto!=null){
//      queryInductionDeptDetailComReqDto_3=implementDeviceAcquisitionOrgPersonalInfoComRespDto;;//SimpleFieldAssign//sourceId:1402929_1_56390
//    }
//
//    /*D1查询就职的部门详情(公共)[7829]   */
//    Assert.isNull(queryInductionDeptDetailComReqDto_3,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-个人账号ID不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_3,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-就职单位类型实例不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_3,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-是否主岗不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_3,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-是否异动不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_3,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-主体生命周期不能为空",false);
//Assert.isNull(queryInductionDeptDetailComReqDto_3,"D2执行智能指令沟通服务(公共)-D1查询就职的部门详情(公共)-创建于空间ID不能为空",false);
//      queryInductionDeptDetailComRespDto_4 = baseInductionRecordService.queryInductionDeptDetailCom(queryInductionDeptDetailComReqDto_3)/*vcase invoke 跨dubbo调用;*/;
//
//
//
//           }
//AddIndependentTaskBusinessProcessingComRespDto addIndependentTaskBusinessProcessingComRespDto = null;
//    if(implementManuallyParsingInstructionParametersComRespDto !=null&&queryInductionDeptDetailComRespDto_3 !=null&&queryInductionDeptDetailComRespDto_4 !=null){
//          Object addIndependentTaskBusinessProcessingComReqDto=new Object();
//  addIndependentTaskBusinessProcessingComReqDto.setTaskType("ROUTINE_TASK");//sourceId:1403586_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setWorkTaskType("INDEPENDENT_TASK");//sourceId:1403613_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setArrangeSubjectTypeCode("OMS_ORG_DEPT");//sourceId:1403588_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setCoordObjectTypeCode("OMS_ORG_DEPT");//sourceId:1403596_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setPlanStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1403598_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setSourceTypeCode("CONVENTIONAL_WORK_TASKS");//CUSTOM_CONVENTION//sourceId:1403600_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setIsSystemTask("FALSE");//sourceId:1403607_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setIsSystemComplete("FALSE");//sourceId:1403608_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1403602_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setMessageImportantLevel(Long.valueOf(4));//CUSTOM_CONVENTION//sourceId:1403609_1_56384
//if(implementManuallyParsingInstructionParametersComRespDto!=null){
//      addIndependentTaskBusinessProcessingComReqDto=implementManuallyParsingInstructionParametersComRespDto.getCustomField1();;//SimpleFieldAssign//sourceId:1403584_1_56384
//addIndependentTaskBusinessProcessingComReqDto=implementManuallyParsingInstructionParametersComRespDto.getCustomField5();;//SimpleFieldAssign//sourceId:1403603_1_56384
//addIndependentTaskBusinessProcessingComReqDto.setPlanEndTime(implementManuallyParsingInstructionParametersComRespDto.getCustomField4()!=null?CommonFunctionHelper.str2Date(implementManuallyParsingInstructionParametersComRespDto.getCustomField4()):null);//SimpleFieldAssign//sourceId:1403599_1_56384
//    }
//if(queryInductionDeptDetailComRespDto_3!=null){
//      addIndependentTaskBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto_3;;//SimpleFieldAssign//sourceId:1403587_1_56384
//addIndependentTaskBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto_3;;//SimpleFieldAssign//sourceId:1403597_1_56384
//addIndependentTaskBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto_3;;//SimpleFieldAssign//sourceId:1403601_1_56384
//    }
//if(queryInductionDeptDetailComRespDto_4!=null){
//      addIndependentTaskBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto_4;;//SimpleFieldAssign//sourceId:1403589_1_56384
//addIndependentTaskBusinessProcessingComReqDto=queryInductionDeptDetailComRespDto_4;;//SimpleFieldAssign//sourceId:1403605_1_56384
//    }
//
//    /*D3-新增独立任务（或子任务）业务处理(公共)[7853]   */
//    Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-任务名称不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-任务简介不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-任务类型不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-工作任务类别不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-安排主体ID不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-安排主体类型编码不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-接收部门ID不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-归属对象类型编码不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-归属对象ID不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-计划开始时间不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-计划结束时间不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-来源类型编码不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-汇报对象就职记录ID不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-负责人就职记录ID不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-是否系统任务不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-是否系统完成不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-主体生命周期不能为空",false);
//Assert.isNull(addIndependentTaskBusinessProcessingComReqDto,"D2执行智能指令沟通服务(公共)-D3-新增独立任务（或子任务）业务处理(公共)-消息重要紧急度层级不能为空",false);
//      addIndependentTaskBusinessProcessingComRespDto = appWorkTasksService.addIndependentTaskBusinessProcessingCom(addIndependentTaskBusinessProcessingComReqDto)/*vcase invoke 跨dubbo调用;*/;
//
//
//
//           }
////ModelCode: receptionService
//        ObtainReceiveFieldsRespDto receptionServiceRes_5 = null;
//    ObtainReceiveFieldsReqDto receptionServiceReq_3=new ObtainReceiveFieldsReqDto();
//  if(receptionServiceRes!=null){
//      receptionServiceReq_3.setContent(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1402713_1_56387
//    }
//
//    /*M2-接收回答[4007]  用于特殊方法接收上游入参。 */
//    Assert.isNull(receptionServiceReq_3.getContent(),"D2执行智能指令沟通服务(公共)-M2-接收回答-消息内容不能为空",false);
//      receptionServiceRes_5 = nbIntelligentCommunication.obtainReceiveFields(receptionServiceReq_3);
//
//
//      receptionServiceRes_3 = receptionServiceRes_5;
//    }
//else{
//       //else  56355
//
////异常结束 56356
//      throw new BizException("500","系统异常，请联系管理员！",false);
//    }
        ImplementIntelligentCommandCommunicationServiceComRespDto retData = new ImplementIntelligentCommandCommunicationServiceComRespDto();
//  if(receptionServiceRes_3!=null){
//      retData.setMessageContent(receptionServiceRes_3.getMessageContent());//SimpleFieldAssign//sourceId:1403655_1
//    }


        return retData;
    }

    /**
     * D2执行判断想法类型(公共)[8324]
     * gen by moon at 1/23/2024, 2:13:38 AM
     */
    @Trace(operationName = "D2执行判断想法类型(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementDetermineTypeIdeaComRespDto implementDetermineTypeIdeaCom(ImplementDetermineTypeIdeaComReqDto reqDto) {


        ImplementSmartSessionReceiveFieldInputRespDto receptionServiceRes_1 = null;
        ImplementSmartSessionReceiveFieldInputRespDto receptionServiceRes_3 = null;
        if ((reqDto != null && reqDto.getCustomField() != null && reqDto.getCustomField().equals("1"))) {
            //if(D2执行判断想法类型(公共).自定义字段 等于 1)  59984

//ModelCode: receptionService
            ImplementSmartSessionReceiveFieldInputRespDto receptionServiceRes = null;
            ImplementSmartSessionReceiveFieldInputReqDto receptionServiceReq = new ImplementSmartSessionReceiveFieldInputReqDto();
            receptionServiceReq.setSendMsgScene("RECORD_IDEAS");//sourceId:1495056_1_59988
            receptionServiceReq.setMessageTemplateCode("RECORD_IDEA_MESSAGE_TEMPLATE");//CUSTOM_CONVENTION//sourceId:1495057_1_59988
            receptionServiceReq.setMsgTitleTemplateSemanticEngineCode("RECORD_IDEA_MESSAGE_TITLE_TEMPLATE_IDENTIFICATION");//CUSTOM_CONVENTION//sourceId:1495072_1_59988
            receptionServiceReq.setTitleFieldName("titleIdea");//CUSTOM_CONVENTION//sourceId:1495073_1_59988
            receptionServiceReq.setTitleFieldValue("我的想法");//CUSTOM_CONVENTION//sourceId:1495074_1_59988

            /*M2约定记录创意想法入参[8109]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq.getSendMsgScene(), "D2执行判断想法类型(公共)-M2约定记录创意想法入参-发送消息场景不能为空", false);
            Assert.isNull(receptionServiceReq.getMessageTemplateCode(), "D2执行判断想法类型(公共)-M2约定记录创意想法入参-消息模板标识不能为空", false);
            Assert.isNull(receptionServiceReq.getMsgTitleTemplateSemanticEngineCode(), "D2执行判断想法类型(公共)-M2约定记录创意想法入参-消息标题模板引擎标识不能为空", false);
            Assert.isNull(receptionServiceReq.getTitleFieldName(), "D2执行判断想法类型(公共)-M2约定记录创意想法入参-标题字段字段名不能为空", false);
            Assert.isNull(receptionServiceReq.getTitleFieldValue(), "D2执行判断想法类型(公共)-M2约定记录创意想法入参-标题字段字段值不能为空", false);
            receptionServiceRes = nbIntelligentCommunication.implementSmartSessionReceiveFieldInput(receptionServiceReq);


            receptionServiceRes_1 = receptionServiceRes;
        } else if ((reqDto != null && reqDto.getCustomField() != null && reqDto.getCustomField().equals("2"))) {
            //elseif(D2执行判断想法类型(公共).自定义字段 等于 2)  59985

//ModelCode: receptionService
            ImplementSmartSessionReceiveFieldInputRespDto receptionServiceRes_2 = null;
            ImplementSmartSessionReceiveFieldInputReqDto receptionServiceReq_1 = new ImplementSmartSessionReceiveFieldInputReqDto();
            receptionServiceReq_1.setSendMsgScene("RECORD_MESSAGE");//sourceId:1495054_1_59989
            receptionServiceReq_1.setMessageTemplateCode("RECORD_MESSAGE_TEMPLATE");//CUSTOM_CONVENTION//sourceId:1495055_1_59989
            receptionServiceReq_1.setMsgTitleTemplateSemanticEngineCode("RECORD_MESSAGE_TITLE_TEMPLATE_IDENTIFICATION");//CUSTOM_CONVENTION//sourceId:1495079_1_59989
            receptionServiceReq_1.setTitleFieldName("titleNote");//CUSTOM_CONVENTION//sourceId:1495080_1_59989
            receptionServiceReq_1.setTitleFieldValue("我的笔记");//CUSTOM_CONVENTION//sourceId:1495081_1_59989

            /*M2约定记录重要笔记入参[8109]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_1.getSendMsgScene(), "D2执行判断想法类型(公共)-M2约定记录重要笔记入参-发送消息场景不能为空", false);
            Assert.isNull(receptionServiceReq_1.getMessageTemplateCode(), "D2执行判断想法类型(公共)-M2约定记录重要笔记入参-消息模板标识不能为空", false);
            Assert.isNull(receptionServiceReq_1.getMsgTitleTemplateSemanticEngineCode(), "D2执行判断想法类型(公共)-M2约定记录重要笔记入参-消息标题模板引擎标识不能为空", false);
            Assert.isNull(receptionServiceReq_1.getTitleFieldName(), "D2执行判断想法类型(公共)-M2约定记录重要笔记入参-标题字段字段名不能为空", false);
            Assert.isNull(receptionServiceReq_1.getTitleFieldValue(), "D2执行判断想法类型(公共)-M2约定记录重要笔记入参-标题字段字段值不能为空", false);
            receptionServiceRes_2 = nbIntelligentCommunication.implementSmartSessionReceiveFieldInput(receptionServiceReq_1);


            receptionServiceRes_3 = receptionServiceRes_2;
        } else {
            //else  59986

//异常结束 59987
            throw new BizException("500", "系统异常，请联系管理员！", false);
        }
        ImplementDetermineTypeIdeaComRespDto retData = new ImplementDetermineTypeIdeaComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setSendMsgScene(receptionServiceRes_1.getSendMsgScene());//SimpleFieldAssign//sourceId:1495337_1
            retData.setMessageTemplateCode(receptionServiceRes_1.getMessageTemplateCode());//SimpleFieldAssign//sourceId:1495338_1
            retData.setMsgTitleTemplateSemanticEngineCode(receptionServiceRes_1.getMsgTitleTemplateSemanticEngineCode());//SimpleFieldAssign//sourceId:1495339_1
            retData.setTitleFieldName(receptionServiceRes_1.getTitleFieldName());//SimpleFieldAssign//sourceId:1495340_1
            retData.setTitleFieldValue(receptionServiceRes_1.getTitleFieldValue());//SimpleFieldAssign//sourceId:1495341_1
        }
        if (receptionServiceRes_3 != null) {
            retData.setSendMsgScene(receptionServiceRes_3.getSendMsgScene());//SimpleFieldAssign//sourceId:1495337_1
            retData.setMessageTemplateCode(receptionServiceRes_3.getMessageTemplateCode());//SimpleFieldAssign//sourceId:1495338_1
            retData.setMsgTitleTemplateSemanticEngineCode(receptionServiceRes_3.getMsgTitleTemplateSemanticEngineCode());//SimpleFieldAssign//sourceId:1495339_1
            retData.setTitleFieldName(receptionServiceRes_3.getTitleFieldName());//SimpleFieldAssign//sourceId:1495340_1
            retData.setTitleFieldValue(receptionServiceRes_3.getTitleFieldValue());//SimpleFieldAssign//sourceId:1495341_1
        }


        return retData;
    }

    /**
     * D2构造智能问答列表单条内容(公共)[10448]
     * gen by moon at 12/10/2024, 12:01:55 AM
     */
    @Trace(operationName = "D2构造智能问答列表单条内容(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddGuidedThirdPartyIntelligentQaComRespDto addGuidedThirdPartyIntelligentQaCom(AddGuidedThirdPartyIntelligentQaComReqDto reqDto) {


        //步骤0: D2新增内存业务数据(业务原子) - addMemoryBusiness2DataCom
        AddMemoryBusiness2DataComRespDto addMemoryBusiness2DataComRespDto = null;
        AddMemoryBusiness2DataComReqDto addMemoryBusiness2DataComReqDto = new AddMemoryBusiness2DataComReqDto();
        addMemoryBusiness2DataComReqDto.setDataObjectBatchCode(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2035307_1
        addMemoryBusiness2DataComReqDto.setIsDataList("TRUE");//sourceId:2035309_1
        addMemoryBusiness2DataComReqDto.setCustomField1("role");//CUSTOM_CONVENTION//sourceId:2035310_1
        addMemoryBusiness2DataComReqDto.setCustomField2("content");//CUSTOM_CONVENTION//sourceId:2035312_1
        if (reqDto != null) {
            addMemoryBusiness2DataComReqDto.setBusinessDataObject(reqDto.getBusinessDataObject());//SimpleFieldAssign//sourceId:2035308_1
            addMemoryBusiness2DataComReqDto.setCustomFieldValue1(reqDto.getCustomFieldValue1());//SimpleFieldAssign//sourceId:2035311_1
            addMemoryBusiness2DataComReqDto.setCustomFieldValue2(reqDto.getCustomFieldValue2());//SimpleFieldAssign//sourceId:2035313_1
        }

        /*D2新增内存业务数据(业务原子)[9751]   */
        Assert.isNull(addMemoryBusiness2DataComReqDto.getDataObjectBatchCode(), "D2构造智能问答列表单条内容(公共)-D2新增内存业务数据(业务原子)-数据对象批次标识不能为空", false);
        Assert.isNull(addMemoryBusiness2DataComReqDto.getBusinessDataObject(), "D2构造智能问答列表单条内容(公共)-D2新增内存业务数据(业务原子)-业务数据对象不能为空", false);
        Assert.isNull(addMemoryBusiness2DataComReqDto.getIsDataList(), "D2构造智能问答列表单条内容(公共)-D2新增内存业务数据(业务原子)-是否是数据集对象不能为空", false);
        Assert.isNull(addMemoryBusiness2DataComReqDto.getCustomFieldValue1(), "D2构造智能问答列表单条内容(公共)-D2新增内存业务数据(业务原子)-自定义字段值1不能为空", false);
        Assert.isNull(addMemoryBusiness2DataComReqDto.getCustomFieldValue2(), "D2构造智能问答列表单条内容(公共)-D2新增内存业务数据(业务原子)-自定义字段值2不能为空", false);
        addMemoryBusiness2DataComRespDto = businessAtomService.addMemoryBusiness2DataCom(addMemoryBusiness2DataComReqDto)/*vcase invoke isSameApp*/;


        AddGuidedThirdPartyIntelligentQaComRespDto retData = new AddGuidedThirdPartyIntelligentQaComRespDto();


        return retData;
    }

    /**
     * D2执行上传文件到第三方智能问答(公共)[10424]
     * gen by moon at 12/13/2024, 10:42:49 PM
     */
    @Trace(operationName = "D2执行上传文件到第三方智能问答(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementUploadFileToThirdQaComRespDto implementUploadFileToThirdQaCom(ImplementUploadFileToThirdQaComReqDto reqDto) {


        ImplementResourceFileToThirdPartyRespDto thirtPartFileUploadRes_1 = null;
//步骤0: D2加载资源文件到内存(公共) - downLoadResourceFileCom
        DownLoadResourceFileComRespDto downLoadResourceFileComRespDto = null;
        DownLoadResourceFileComReqDto downLoadResourceFileComReqDto = new DownLoadResourceFileComReqDto();
        if (reqDto != null) {
            downLoadResourceFileComReqDto.setResourceFileRelaPath(reqDto.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2036659_1
        }

        /*D2加载资源文件到内存(公共)[10440]   */

        downLoadResourceFileComRespDto = resourceFileService.downLoadResourceFileCom(downLoadResourceFileComReqDto)/*vcase invoke isSameApp*/;


//步骤1: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
        QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
        QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
        queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2034959_1
        queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:2036657_1
        queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("THIRD_QA_SYSTEM");//CUSTOM_CONVENTION//sourceId:2036656_1
        queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:2034961_1

        /*D2查询智能沟通配置[2486]   */
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(), "D2执行上传文件到第三方智能问答(公共)-D2查询智能沟通配置-开通对象ID不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(), "D2执行上传文件到第三方智能问答(公共)-D2查询智能沟通配置-开通对象类型编码不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "D2执行上传文件到第三方智能问答(公共)-D2查询智能沟通配置-配置项标识不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "D2执行上传文件到第三方智能问答(公共)-D2查询智能沟通配置-是否标准答案不能为空", false);
        queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto)/*vcase invoke isSameApp*/;


//步骤2: M2执行三方文件上传接口（特殊方法） - implementResourceFileToThirdParty
        //ModelCode: thirtPartFileUpload
        ImplementResourceFileToThirdPartyRespDto thirtPartFileUploadRes = null;
        if (queryConfItemMatchAnswerDetailComRespDto != null) {
            ImplementResourceFileToThirdPartyReqDto thirtPartFileUploadReq = new ImplementResourceFileToThirdPartyReqDto();
            if (queryConfItemMatchAnswerDetailComRespDto != null) {
                thirtPartFileUploadReq.setIntelliQaAddress(queryConfItemMatchAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:2033863_1
                thirtPartFileUploadReq.setKey(queryConfItemMatchAnswerDetailComRespDto.getExtensionField2());//SimpleFieldAssign//sourceId:2033864_1
            }
            if (reqDto != null) {
                thirtPartFileUploadReq.setResourceFileRelaPath(reqDto.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2033872_1
            }

            /*M2执行三方文件上传接口（特殊方法）[10421]   */
            Assert.isNull(thirtPartFileUploadReq.getIntelliQaAddress(), "D2执行上传文件到第三方智能问答(公共)-M2执行三方文件上传接口（特殊方法）-第三方智能问答地址不能为空", false);
            Assert.isNull(thirtPartFileUploadReq.getKey(), "D2执行上传文件到第三方智能问答(公共)-M2执行三方文件上传接口（特殊方法）-key不能为空", false);
            Assert.isNull(thirtPartFileUploadReq.getResourceFileRelaPath(), "D2执行上传文件到第三方智能问答(公共)-M2执行三方文件上传接口（特殊方法）-资源文件相对路径不能为空", false);
            thirtPartFileUploadRes = nbIntelligentCommunication.implementResourceFileToThirdParty(thirtPartFileUploadReq);


            thirtPartFileUploadRes_1 = thirtPartFileUploadRes;
        }

        ImplementUploadFileToThirdQaComRespDto retData = new ImplementUploadFileToThirdQaComRespDto();
        if (thirtPartFileUploadRes_1 != null) {
            retData.setThirtPartFileId(thirtPartFileUploadRes_1.getThirtPartFileId());//SimpleFieldAssign//sourceId:2033868_1
        }


        return retData;
    }

    /**
     * D2生成单个文件长文本问答(公共)[10426]
     * gen by moon at 6/2/2025, 12:03:21 PM
     */
    @Trace(operationName = "D2生成单个文件长文本问答(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public GenerateFileQaComRespDto generateFileQaCom(GenerateFileQaComReqDto reqDto) {


        AddObjectStorageConfigRespDto receptionServiceRes_3 = null;
//步骤0: M2智能沟通接收入参字段（特殊方法） - queryFileQaDetail
        //ModelCode: receptionService
        QueryFileQaDetailRespDto receptionServiceRes = null;
        QueryFileQaDetailReqDto receptionServiceReq = new QueryFileQaDetailReqDto();
        if (reqDto != null) {
            receptionServiceReq.setLongTextFileId(reqDto.getLongTextFileId());//SimpleFieldAssign//sourceId:2036983_1
        }

        /*M2接收入参字段[10427]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getLongTextFileId(), "D2生成单个文件长文本问答(公共)-M2接收入参字段-长文本文件ID不能为空", false);
        receptionServiceRes = nbIntelligentCommunication.queryFileQaDetail(receptionServiceReq);


//步骤1: D2生成语义实例故事(公共) - generateSemanticInstanceStoryCom
        GenerateSemanticInstanceStoryComRespDto generateSemanticInstanceStoryComRespDto = null;
        GenerateSemanticInstanceStoryComReqDto generateSemanticInstanceStoryComReqDto = new GenerateSemanticInstanceStoryComReqDto();
        generateSemanticInstanceStoryComReqDto.setTemplateSemanticEngineCode("SINGLE_LONG_TEXT_QUESTION_MODEL");//CUSTOM_CONVENTION//sourceId:2034150_1
        generateSemanticInstanceStoryComReqDto.setFirstFieldName("longTextFileId");//CUSTOM_CONVENTION//sourceId:2034151_1
        if (reqDto != null) {
            generateSemanticInstanceStoryComReqDto.setFirstFieldValue(reqDto.getLongTextFileId());//SimpleFieldAssign//sourceId:2034152_1
        }

        /*D2生成单个长文本提问模板[8234]   */
        Assert.isNull(generateSemanticInstanceStoryComReqDto.getTemplateSemanticEngineCode(), "D2生成单个文件长文本问答(公共)-D2生成单个长文本提问模板-模板引擎标识不能为空", false);
        Assert.isNull(generateSemanticInstanceStoryComReqDto.getFirstFieldName(), "D2生成单个文件长文本问答(公共)-D2生成单个长文本提问模板-第一个字段字段名不能为空", false);
        Assert.isNull(generateSemanticInstanceStoryComReqDto.getFirstFieldValue(), "D2生成单个文件长文本问答(公共)-D2生成单个长文本提问模板-第一个字段字段值不能为空", false);
        generateSemanticInstanceStoryComRespDto = templateEngineService.generateSemanticInstanceStoryCom(generateSemanticInstanceStoryComReqDto)/*vcase invoke isSameApp*/;


//步骤2: D2-执行双字段多条转数据集(公共) - implementMulitDataToOneDatasCom
        ImplementMulitDataToOneDatasComRespDto implementMulitDataToOneDatasComRespDto = null;
        if (generateSemanticInstanceStoryComRespDto != null) {
            ImplementMulitDataToOneDatasComReqDto implementMulitDataToOneDatasComReqDto = new ImplementMulitDataToOneDatasComReqDto();
            implementMulitDataToOneDatasComReqDto.setCustomField1("system");//CUSTOM_CONVENTION//sourceId:2036987_1
            implementMulitDataToOneDatasComReqDto.setCustomField2("这篇文章讲了什么？限制在50字以内");//CUSTOM_CONVENTION//sourceId:2036988_1
            implementMulitDataToOneDatasComReqDto.setCustomField3("user");//CUSTOM_CONVENTION//sourceId:2036989_1
            if (generateSemanticInstanceStoryComRespDto != null) {
                implementMulitDataToOneDatasComReqDto.setCustomField(generateSemanticInstanceStoryComRespDto.getObjectName());//SimpleFieldAssign//sourceId:2036986_1
            }

            /*D2-执行双字段多条转数据集(公共)[5869]   */
            Assert.isNull(implementMulitDataToOneDatasComReqDto.getCustomField(), "D2生成单个文件长文本问答(公共)-D2-执行双字段多条转数据集(公共)-第一条记录A字段不能为空", false);
            Assert.isNull(implementMulitDataToOneDatasComReqDto.getCustomField1(), "D2生成单个文件长文本问答(公共)-D2-执行双字段多条转数据集(公共)-第一条记录B字段不能为空", false);
            Assert.isNull(implementMulitDataToOneDatasComReqDto.getCustomField2(), "D2生成单个文件长文本问答(公共)-D2-执行双字段多条转数据集(公共)-第二条记录A字段不能为空", false);
            Assert.isNull(implementMulitDataToOneDatasComReqDto.getCustomField3(), "D2生成单个文件长文本问答(公共)-D2-执行双字段多条转数据集(公共)-第二条记录B字段不能为空", false);
            implementMulitDataToOneDatasComRespDto = interfaceModeService.implementMulitDataToOneDatasCom(implementMulitDataToOneDatasComReqDto)/*vcase invoke isSameApp*/;


        }

//步骤3: M2接收字段出参（特殊方法） - addObjectStorageConfig
        //ModelCode: receptionService
        AddObjectStorageConfigRespDto receptionServiceRes_2 = null;
        if (implementMulitDataToOneDatasComRespDto != null) {
            AddObjectStorageConfigReqDto receptionServiceReq_1 = new AddObjectStorageConfigReqDto();
            if (implementMulitDataToOneDatasComRespDto != null && implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList() != null && !CollectionUtil.isEmpty(implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList())) {
                receptionServiceReq_1.setGetListIntelligentAnswersList(//objList-to-objLists
                        implementMulitDataToOneDatasComRespDto.getMulitDataToOneDatasList().stream().map(item -> {
                            GetListIntelligentAnswersDto elm = new GetListIntelligentAnswersDto();
                            if (item != null) {
                                elm.setContent(item.getCustomField1());//SimpleFieldAssign//sourceId:430256_2
                                elm.setRole(item.getCustomField2());//SimpleFieldAssign//sourceId:430257_2
                            }
                            return elm;
                        }).collect(Collectors.toList()));//objList-to-objLists//sourceId:2036995_1
            }

            /*M2接收出参[10411]  用于特殊方法接收上游入参。 */

            receptionServiceRes_2 = nbIntelligentCommunication.addObjectStorageConfig(receptionServiceReq_1);


            receptionServiceRes_3 = receptionServiceRes_2;
        }

        GenerateFileQaComRespDto retData = new GenerateFileQaComRespDto();
        if (receptionServiceRes_3 != null) {
            retData.setGetListIntelligentAnswersList(receptionServiceRes_3.getGetListIntelligentAnswersList().stream().map(item -> BeanUtil.toBean(item, GetListIntelligentAnswersDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:2036997_1
        }


        return retData;
    }
    //
}
